{% extends "base.html" %} {% load crispy_forms_tags %} {% block content %} {% if user.is_authenticated %} {% if request.user.groups.all.0.name == "company_owner" %} {% comment %} {% with {{postingform.company}}={{company.id}} %} {% endcomment %}